import 'package:capsule/utils/convert_utils.dart';

class ConfigFileType {
  final String name;
  final List<String>? extensions;

  const ConfigFileType({required this.name, required this.extensions});
  factory ConfigFileType.parse(Map<String, dynamic> configFileTypeItem) {
    return ConfigFileType(
        name: configFileTypeItem["name"],
        extensions: dynamicList2StringList(configFileTypeItem["extensions"]));
  }
}
